export const COLLECT_NAMESPACE = 'collect';

export function COLLECT_LIST(payload) {
  return {
    type: `${COLLECT_NAMESPACE}/fetchList`,
    payload,
  };
}

export function COLLECT_DETAIL(id) {
  return {
    type: `${COLLECT_NAMESPACE}/fetchDetail`,
    payload: { id },
  };
}

export function COLLECT_CLEAR_DETAIL() {
  return {
    type: `${COLLECT_NAMESPACE}/clearDetail`,
    payload: {},
  };
}

export function COLLECT_SUBMIT(payload) {
  return {
    type: `${COLLECT_NAMESPACE}/submit`,
    payload,
  };
}

export function COLLECT_REMOVE(payload) {
  return {
    type: `${COLLECT_NAMESPACE}/remove`,
    payload,
  };
}
